package com.zyong.design.pattern.responsibility.case4;

/**
 * @program: zyong-design-pattern
 * @ClassName: AbstractApproveHandler
 * @author: zyong
 * @create: 2024-04-13 18:14
 */
public abstract class AbstractApproveHandler {
    protected AbstractApproveHandler nextHandler;
    public void setNextHandler(AbstractApproveHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    /**
     * 处理请求
     * @param request
     */
    protected abstract void process(LeaveRequest request);
}
